package book.ch3.Car;
interface DriveControl{
	void startEngine();
}
interface Repairable{
	void repair();
}
public class Car implements DriveControl,Repairable{
	String model;
	public Car(){
		System.out.println("Car init");
	}
	public Car(String model){
		this.model=model;
	}
	void printModel(){
		System.out.println("The model of this car is "+this.model);
	}
	public void startEngine(){
		System.out.println("Start engine");
	}
	public void repair(){
		System.out.println("Car is repaired");
	}
	public static void main(String[] args) {
		Car car=new Car();
		DriveControl control=(DriveControl)car;
		control.startEngine();
		Repairable repairable=(Repairable)car;
		repairable.repair();
	}

}
